package com.xbongbong.saas.model.impl;

import com.xbongbong.saas.domain.dao.ExpressPrintTemplateDao;
import com.xbongbong.saas.domain.entity.ExpressPrintTemplateEntity;
import com.xbongbong.saas.model.ExpressPrintTemplateModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

;

/**
 * @author bomfish
 */
@Service("expressPrintTemplateModel")
public class ExpressPrintTemplateModelImpl implements ExpressPrintTemplateModel {
    @Resource
    private ExpressPrintTemplateDao expressPrintTemplateDao;

    @Override
    public Long insert(ExpressPrintTemplateEntity entity) {
        return expressPrintTemplateDao.insert(entity);
    }

    @Override
    public void insertBatch(List<ExpressPrintTemplateEntity> list) {
        expressPrintTemplateDao.insertBatch(list);
    }

    @Override
    public List<ExpressPrintTemplateEntity> findEntities(Map<String, Object> param) {
        return expressPrintTemplateDao.findEntities(param);
    }

    @Override
    public Integer getEntityCount(Map<String, Object> param) {
        return expressPrintTemplateDao.getEntitiesCount(param);
    }

    @Override
    public void update(ExpressPrintTemplateEntity entity) {
        expressPrintTemplateDao.update(entity);
    }

    @Override
    public ExpressPrintTemplateEntity getByKey(Long key, String corpid) {
        return expressPrintTemplateDao.getByKey(key, corpid);
    }

    @Override
    public void updateBatchDel(List<Long> list, String corpid) {
        expressPrintTemplateDao.updateBatchDel(list,corpid);
    }

    /**
     * 批量更新
     * @param list 主键id集合
     * @param corpid
     */
    @Override
    public void updateBatch(List<ExpressPrintTemplateEntity> list, String corpid) {
        expressPrintTemplateDao.updateBatch(list,corpid);
    }

}
